# Maintainer: Dominika Liberda <ja@sdomi.pl>
# Contributor: Dominika Liberda <ja@sdomi.pl>
pkgname=katarakt
pkgver=0.2
pkgrel=0
pkgdesc="Simple PDF viewer"
url="https://gitlab.cs.fau.de/Qui_Sum/katarakt"
arch="all"
license="BSD-2-Clause"
makedepends="
	poppler-qt5-dev
	qt5-qtbase-dev
	"
source="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v$pkgver/katarakt-v$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir/$pkgname-v$pkgver/"

build() {
	qmake-qt5 \
		PREFIX=/usr \
		QT_INSTALL_PREFIX=/usr \
		CONFIG+=no_qt_rpath
	make
}

package() {
	install -Dm755 katarakt "$pkgdir"/usr/bin/katarakt
}

sha512sums="
a07054e0e9915f6239b8149bbd08c8b5ec095b0e9ffb54e03761ad9e59914f66166e4b8359298721a6b46c2bcf5114f40ad117c4826a32660c1fba28f69b8e68  katarakt-v0.2.tar.gz
"
